<!DOCTYPE html>
<html>
<head>
<title>组织机构</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8, IE=9, IE=10, chrome=1" />
<meta name="renderer" content="webkit" />
<link href="../framework/css/font.css" rel="stylesheet" />
<link href="../framework/miniui/themes/material/miniui.css" rel="stylesheet" />
<link href="../framework/css/app.min.1.css" rel="stylesheet" type="text/css" />
<link href="../framework/css/app.min.2.css" rel="stylesheet" type="text/css" />
<script src="../framework/main.js"></script>
<style type="text/css">
.input-group-addon{width:160px;text-align: right;}
</style>
<script type="text/javascript">
	Page.onLoad(function(){
		//console.info(getDom('Name'));
	});
	
	function onCloseClick(e) {
	    var obj = e.sender;
	    obj.setText("");
	    obj.setValue("");
	}
</script>
</head>
<body class="dialog">
<ef:init method="JobTitle.init">
	<form id="form2">
		<input id="ID" class="mini-hidden" type="hidden" value="${ID}"  />
		<div class="container-fluid">
			<div class="row">
				<div class="col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">岗位名称：</span>
						<input id="Name" type="text" value="${Name}" class="mini-textbox" required="true" style="width:200px" />
					</div>
					<div class="input-group">
						<span class="input-group-addon">组织层级：</span>
						<input id="OrgLevel" class="mini-combobox" style="width:150px;" textField="text" valueField="id" emptyText="请选择..."
    						method="OrgLevel.getTable" value="${OrgLevel}"  required="true" allowInput="false" showNullItem="true" nullItemText="请选择..."/> 
					</div>
					<div class="input-group" style="margin-top:8px;">
						<span class="input-group-addon">组织机构：</span>
						<input id="BranchInnerCode" class="mini-treeselect" method="MemberBranch.tree" textField="Name" style="width:200px" resultAsTree="false" idField="BranchInnerCode" parentField="ParentInnerCode" value="${BranchInnerCode}" valueField="BranchInnerCode"/>
					</div>
					<div class="input-group">
						<span class="input-group-addon">专业：</span>
						<input id="Major" class="mini-combobox" style="width:150px;" textField="text" valueField="id" emptyText="请选择..."
    						method="Major.getTable" value="${Major}"  required="true" allowInput="false" showNullItem="true" nullItemText="请选择..."/> 
					</div>
					<div class="input-group">
						<span class="input-group-addon">岗位安全管理权限：</span>
						<div id="TitlePriv" class="mini-combobox" style="width:200px;" textField="text" valueField="id" 
						    data='[{id:1,text:"三违举报处置"},{id:2,text:"隐患举报处置"},{id:3,text:"对象汇总审核"},{id:4,text:"风险评估汇总审核"},{id:5,text:"审核审定监督管理"}]' value="${TitlePriv}" multiSelect="true"  showClose="true" oncloseclick="onCloseClick" >     
						    <div property="columns">
						        <div header="名称" field="text"></div>
						    </div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</ef:init>
</body>
</html>
